<?php
$type_ids = '1';

echo ','.implode(',', $type_ids).',';